
<?php if(!empty($path)){?>
<div>
当前位置： / <a href="<?php echo url('cate')?>">根</a>
<?php foreach($path as $node){ ?>
 / <a href="<?php echo url('cate/pid/'.$node['hid']);?>"><?php echo $node['title']?></a>
<?php } ?>
</div>
<?php } ?>

<table class="list">
<tr class="foot">
	<td colspan=4>
		<input type="button" value="新建分类" onclick="location.href='<?php echo url(!empty($pid)?'cate-add/pid/'.$pid:'cate-add'); ?>'" />
		<input type="button" value="分类交集" onclick="location.href='<?php echo url('mix'); ?>'" />
	</td>
</tr>
<tr class="head">
	<td>名称</td>
	<td>类型</td>
	<td>描述</td>
	<td>&nbsp;</td>
</tr>
<?php if($list) foreach($list as $c){ ?>
<tr class="body">
	<td id='title<?php echo $c['hid']?>'>
		<a href="<?php echo url('cate/pid/'.$c['hid'])?>"><?php echo $c['title'];?></a>
		&nbsp; <?php echo $c['nc'];?>
	</td>
	<td><?php echo $node_types[$c['type']]; ?></td>
	<td id='desc<?php echo $c['hid']?>'><?php echo $c['desc'];?></td>
	<td width='60'>
		<a href='javascript:chgMName(<?php echo $c['hid']?>)'>编辑</a>
		删除
	</td>
</tr>
<?php } ?>
</table>

<script type="text/javascript">
function chgMName(hid)
{
	location.href='<?php echo url('cate-mod/id/')?>'+hid;
}
</script>
